﻿using System.Collections.Generic;

namespace SmartAssembly
{
    public static class Helpers
    {
        internal static string ConvertIpToGuid(string ipAddress)
        {
            return SDK.Helpers.HashAddress(ipAddress, false).ToString("B");
        }

        public static IEnumerable<string> GetAllFormsOfIpAddress(string ipAddress)
        {
            yield return ipAddress;
            yield return ConvertIpToGuid(ipAddress);
        }
    }
}
